package com.dk.goodnight.service;

import com.dk.goodnight.model.TokenBean;
import com.dk.goodnight.model.UserBean;

public interface IUserService {

    UserBean getUserByPhone(String phone);

    int register(UserBean userBean);


    int insertToken(TokenBean tokenBean);

    /**
     * 更新用户信息
     *
     * @param userBean 用户信息model
     */
    int updateUserInfo(UserBean userBean);

    /**
     * 获取用户信息
     *
     * @return 用户信息
     */
    UserBean getUserInfo(int user_id);



}
